package com.xwt.pattern.abstractFactory;

/**
 * Author:  Steven Xiao
 * Description:女娲建立起了两条生产线，分别是：
 * 男性生产线
 * 女性生产线
 * Date:  2016/3/11
 * Time:  14:59
 */
public class NvWa {
    public static void main(String[] args) {

        //第一条生产线，男性生产线
        HumanFactory maleHumanFactory = new MaleHumanFactory();

        //第二条生产线，女性生产线
        HumanFactory femaleHumanFactory  = new FemaleHumanFactory();

        Human maleYellowHuman  =  maleHumanFactory.createYellowHuman();

        Human femaleYellowHuman = femaleHumanFactory.createYellowHuman();

        maleYellowHuman.sex();
        femaleYellowHuman.sex();
    }
}
